﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;

namespace Sector7.Medical.EntityType
{
    /// <summary>
    /// 药房发药单据实体对象
    /// </summary>
    [Serializable()]
    [DataContract]
    public class M7_DispenseBill : EntityBase
    {
        #region Accessor
        /// <summary>
        /// 获取或设置发药单据编号
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public long BillId { get; set; }

        /// <summary>
        /// 获取或设置电子病历编号
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public long EmrId { get; set; }

        /// <summary>
        /// 获取或设置发药药房编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public int DeptId { get; set; }

        /// <summary>
        /// 获取或设置发操作人员编号
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string OperatorId { get; set; }

        /// <summary>
        /// 获取或设置代理领药人姓名
        /// </summary>
        [DataMember]
        public string AgentName { get; set; }

        /// <summary>
        /// 获取或设置单据建立时间
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 获取或设置单据状态
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public int Status { get; set; }

        /// <summary>
        /// 获取或设置单据状态
        /// </summary>
        [DataMember]
        public List<M7_Recipe> RecipeList { get; set; }

        /// <summary>
        /// 获取或设置单据状态
        /// </summary>
        [DataMember]
        public List<M7_MedicalRecord> MedicalRecordList { get; set; }
        #endregion
    }
}
